import {messages} from "share/common";
import React from 'react'
const subisidySettingData = {
  //差补设置
  'subsidy-setting': {
    description: messages('expense-8.key379')/*您可以在此页面配置差补规则。*/,
    //模块组
    configs: [
      {
        moduleName: messages('expense-8.key352')/*详细设置*/,
        //配置组
        groupList: [
          {
            fpName: messages('expense-8.key353')/*申请单差补管控*/,
            fpCode: 'requestControl',
            description: messages('expense-8.key354')/*默认每人每天只能提交一条相同费用类型的差补，【申请单差补管控】默认超出后将“警告”，可配置为“不可提交”*/,
            //配置值
            options: [{ value: 1001, label: messages('expense-8.key95')/*警告*/ }, { value: 1002, label: messages('expense-8.key171')/*不可提交*/ },],
          },
          {
            fpName: React.Component.prototype.checkFunctionProfiles('Customize.expense.type', [true]) ?
              messages('expense-8.key355')/*差补管控*/ : messages('expense-8.key356')/*报销单差补管控*/,
            fpCode: 'reportControl',
            description: React.Component.prototype.checkFunctionProfiles('Customize.expense.type', [true]) ?
              messages('expense-8.key357')/*默认每人每天只能提交一条相同费用类型的差补，【差补管控】默认超出后不可提交*/ :
              messages('expense-8.key358')/*默认每人每天只能提交一条相同费用类型的差补，【报销单差补管控】默认超出后不可提交*/,
            //配置值
            options: [
              { value: 1003, label: messages('expense-8.key171')/*不可提交*/ },
              { value: 1001, label: messages('expense-8.key173')/*取最后一个目的地当天的补贴金额*/ },
              { value: 1002, label: messages('expense-8.key174')/*取城市就高的补贴金额*/ },
              { value: 1004, label: messages('expense-8.key175')/*取第一个目的地当天的补贴金额*/ }
            ],
          },
          {
            fpName: messages('expense-8.key359')/*员工修改差补金额*/,
            fpCode: 'amountModify',
            description: messages('expense-8.key360')/*配置员工是否可修改差补金额*/,
            //配置值
            options: [
              { value: 1001, label: messages('expense-8.key166')/*不可修改*/ },
              { value: 1002, label: messages('expense-8.key361')/*可修改，修改后金额不可大于原金额*/ },
              { value: 1003, label: messages('expense-8.key362')/*可修改，修改后金额可大于原金额*/ }
            ],
          },
          {
            fpName: messages('expense-8.key177')/*报销单自动获取补贴方式*/,
            fpCode: 'reportAttachDisable',
            description: messages('expense-8.key363')/*配置报销单自动获取补贴的方式*/,
            info:messages('expense-8.key364')/*启用[报销单头起止日期生成补贴]，需同时：1、报销单选择补贴规则；2、补贴规则无[城市]和[值列表]维度。*/,
            //配置值
            options: [
              { value: 'true', label: messages('expense-8.key181')/*申请单补贴带入*/ },
              { value: 'default', label: messages('expense-8.key182')/*报销单头起止日期生成补贴*/ },
              { value: 'false', label: messages('expense-8.key183')/*不自动获取*/ }
            ],
          },
          {
            fpName: messages('expense-8.key365')/*行程是否自动计算*/,
            fpCode: 'travelAutoCalculate',
            info:messages('expense-8.key185')/*启用后，行程上会显示出发城市字段、到达城市字段，到达城市会参与差补计算。只对报销单表单适用*/,
            description: messages('expense-8.key366')/*配置为“是”，行程上会显示出发城市字段、到达城市字段，到达城市会参与差补计算。只对报销单表单适用*/,
            //配置值
            options: [{ value: true, label: messages('common.yes')/*是*/ }, { value: false, label: messages('common.no')/*否*/ }],
          },
        ]
      }
    ],

  },
};
export default subisidySettingData
